package com.hbnu.service;

import com.hbnu.dao.StudyRecordDAO;
import com.hbnu.entity.StudyRecord;
import java.util.List;

public class StudyRecordService {
    private StudyRecordDAO recordDAO = new StudyRecordDAO();

    // 获取用户待复习记录
    public List<StudyRecord> getTodayReviewRecords(int userId) {
        if (userId <= 0) {
            throw new IllegalArgumentException("用户ID无效");
        }
        List<StudyRecord> records = recordDAO.getReviewRecords(userId);
        return records;
    }
}
